package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Column;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @AUTHOR soft
 * @DATE 2018/9/2 14:19
 * @DESCRIBE 课程习题
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "practice")
public class Practice extends Model {
    private Integer id;

    private Integer courseId; // 所属课程id
    @Ignore
    private Course  course;

    private Integer taskId;   // 所属任务id
    @Ignore
    private Task    task;     // 所属任务

    private Integer type;     // 0单选,1多选,2问答...
    private Integer difficulty; // 难度 0简单 1普通 2难
    private String  stem;     // 题干

    @Ignore
    private List<PracticeOption> options;

    private String  analysis; // 解析
    private Float   score;    // 分值
    @Column(name = "option_")
    private String  option;   // 正确选项

    private String  time;     // 添加时间
}
